<?php echo $html->css('twitter_like.css'); ?>
<?php echo $javascript -> link('ui/profile.ui.js');//表示部のJS?>

<div data-role="page" id="mytweet-page">
	<?php echo $this->element('header'); ?>
	<div id="mytweet"></div>
	<?php echo $this->element('footer_profile'); ?>
</div><!-- end of tweet-page -->

<div data-role="page" id="fav-page">
	<?php echo $this->element('header'); ?>
	<div id="fav"></div>
	<?php echo $this->element('footer_profile'); ?>
</div><!-- end of map-page -->

<div data-role="page" id="contents-page">
	<?php echo $this->element('header'); ?>
	<div id="contents">
		<div id="contents" data-theme="d">
		<h3>ランキング</h3>
		<table>
		<?php foreach($datahash['ranking'] as $key => $rank){?>
			<tr>
				<td width="10%"><?php echo $key+1; ?>位</td>
				<td>
					<div class="tweet_unit<?php if($key == 0)echo "_favorite"; ?>" data-theme="b" data-content-theme="b">
					<img src="<?php echo $rank['TwitterUser']->profile_image_url; ?>"/>
					<div class="right_tweet_area">
						<div class="username"><?php echo $rank['TwitterUser']->name; ?></div>
						<div class="tweet"><?php echo $rank['Status']['text']; ?></div>
						<div class="buttom_line">Dummy</div>
					</div>
					<div style="clear:both;"></div>
					</div>
				</td>
			</tr>
		<?php } ?>
		</table>
		</div>
		<div id="contents" data-theme="d">
			<h3>直近の自分のツイート</h3>
			<div class="tweet_unit" data-theme="a" data-content-theme="a">
			<img src="<?php echo $datahash['mytweet']['TwitterUser']->profile_image_url; ?>"/>
			<div class="right_tweet_area">
			<div class="username"><?php echo $datahash['mytweet']['TwitterUser']->name; ?></div>			
			<div class="tweet"><?php echo $datahash['mytweet']['Status']['text']; ?></div>
			<div class="buttom_line"><div class="address"><?php echo $datahash['mytweet']['Location']['Address']['name']; ?>より</div>
			</div><div style="clear:both;"></div></div>
			</div>
			<h3>最も近かったツイート</h3>
			<div class="tweet_unit" data-theme="a" data-content-theme="a">
			<img src="<?php echo $datahash['nearest']['TwitterUser']->profile_image_url; ?>"/>
			<div class="right_tweet_area">
			<div class="username"><?php echo $datahash['nearest']['TwitterUser']->name; ?></div>			
			<div class="tweet"><?php echo $datahash['nearest']['Status']['text']; ?></div>
			<div class="buttom_line"><div class="address"><?php echo $datahash['nearest']['Location']['Address']['name']; ?>より</div>
			</div><div style="clear:both;"></div></div>
			</div>
		</div>
	</div>
	<?php echo $this->element('footer_profile'); ?>
</div><!-- end of search-page -->